import {get,post} from "./http"

//分类
export const reqgetcate=()=>get("/api/getcate");
//轮播
export const reqgetbanner=()=>get("/api/getbanner");

//注册
export const reqregister=(params)=>post("/api/register",params)
//登录
export const reqlogin=(params)=>post("/api/login",params)

//新人专享
export const reqgetnew=()=>get("/api/getnew")
//万人团
export const reqgetgroupon=()=>get("/api/getgroupon")
//倒计时
export const reqgetcountdown=()=>get("/api/getcountdown")

//秒杀
export const reqgetseckill=()=>get("/api/getseckill")

//商品信息
export const reqgetindexgoods=()=>get("/api/getindexgoods")


//优惠券
export const reqgetcoupon=()=>get("/api/getcoupon")

//购物车列表
export const reqcartlist=(p)=>get("/api/cartlist",p)
//购物车添加
export const reqcartadd=(p)=>post("/api/cartadd",p)
//购物车修改
export const reqcartedit=(p)=>post("/api/cartedit",p)
//购物车删除
export const reqcartdeletet=(p)=>post("/api/cartdelete",p)

//## 商品详情
export const reqgetgoodsinfo=(p)=>get("/api/getgoodsinfo",p)

